import http from "@/api/http";

export function getPage(query: object) {
  return http.get({
    url: "/system/user/page",
    params: query
  });
}

export function getUser(id: number) {
  return http.get({
    url: "/system/user/" + id
  });
}

export function saveUser(obj: object) {
  return http.post({
    url: "/system/user",
    data: obj
  });
}

export function updateUser(obj: object) {
  return http.put({
    url: "/system/user",
    data: obj
  });
}

export function delUser(id: any) {
  return http.delete({
    url: "/system/user/" + id
  });
}
